using System;
using System.Linq.Expressions;

namespace Octubre.Framework
{
	public static class ItRequired
	{
		public static void NonNull<T> (Expression<Func<T>> expr)
		{
			if (expr.Compile ().Invoke () == null)
			{
				PropertyNotInitialized.This(expr);
			}
		}
	}
}

